package com.dragon.modules.yuegou.model.merchant;

import com.dragon.modules.yuegou.entity.merchant.UserJpushEntity;
import com.dragon.modules.yuegou.enums.merchant.UserJpushType;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 商户用户极光对应关系表模型类
 * 
 * @author pbuilder generated
 * @date 2019-12-26 17:08:02
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class UserJpush extends UserJpushEntity {

	  /** 语音播报配置：0-关闭；1-开启 */
	@ApiModelProperty("语音播报配置：0-关闭；1-开启")
	private Integer voiceCof;
	
	public Integer getVoiceCof() {
		return voiceCof;
	}

	public void setVoiceCof(Integer voiceCof) {
		this.voiceCof = voiceCof;
	}

	/**
	 * 构造一个空商户用户极光对应关系表模型对象
	 */
	public UserJpush(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商户用户极光对应关系表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public UserJpush(UserJpushEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商户用户极光对应关系表模型对象
	 * 
	 * @param other 其它对象
	 */
	public UserJpush(UserJpush other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public UserJpush id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置
	 * 
	 * @param merchantId 
	 * @return 当前对象
	 */
    public UserJpush merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public String getMerchantUserId() {
    	return merchantUserId;
    }

    /**
	 * 设置
	 * 
	 * @param merchantUserId 
	 * @return 当前对象
	 */
    public UserJpush merchantUserId(String merchantUserId) {
    	this.merchantUserId = merchantUserId;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public UserJpush createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public Boolean getStatus() {
    	return status;
    }

    /**
	 * 设置状态，是否有效
	 * 
	 * @param status 状态，是否有效
	 * @return 当前对象
	 */
    public UserJpush status(Boolean status) {
    	this.status = status;
    	return this;
    }

	@Override
	public String getJpushId() {
    	return jpushId;
    }

    /**
	 * 设置极光id
	 * 
	 * @param jpushId 极光id
	 * @return 当前对象
	 */
    public UserJpush jpushId(String jpushId) {
    	this.jpushId = jpushId;
    	return this;
    }

	@Override
	public UserJpushType getType() {
    	return type;
    }

    /**
	 * 设置[枚举]极光类型：0-安卓-ANDROIN、1-苹果-IOS
	 * 
	 * @param type [枚举]极光类型：0-安卓-ANDROIN、1-苹果-IOS
	 * @return 当前对象
	 */
    public UserJpush type(UserJpushType type) {
    	this.type = type;
    	return this;
    }

}
